<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script charset="utf-8" src="kindeditor/kindeditor.js"></script>
<title>Insert title here</title>
</head>
<body>
	<a>广告</a>
	<form action="addNotice" method="post" enctype="multipart/form-data">
		<table>
			<tr>
				<td>首页广告图片：</td>
				<td><s:file name="indexPicture" /> <s:fielderror
						fieldName="indexPicture"></s:fielderror></td>
			</tr>
			<tr>
				<td>广告首页图片：</td>
				<td><s:file name="pagePicture" /> <s:fielderror
						fieldName="pagePicture"></s:fielderror></td>
			</tr>
			<tr>
				<td>广告标题：</td>
				<td><textarea name="notice.title" id="title" rows="5" cols="70"></textarea></td>
			</tr>
			<tr>
				<td>广告内容：</td>
				<td><textarea name="notice.context" id="context" rows="6"
						cols="70"></textarea></td>
			</tr>
			<tr>
				<td>公告：</td>
				<td><textarea name="notice.attention" id="attention" rows="6"
						cols="70"></textarea></td>
			</tr>
			<tr>
				<td>是否发布公告</td>
				<td><input type="radio" name="notice.isShow" value="1" />公告<input
					type="radio" name="notice.isShow" value="0" checked="checked" />不公告
				</td>
			</tr>
			<tr>
				<td colspan="2"><input type="submit" value="提交"></td>
				<td>${msg}</td>
			</tr>
		</table>
	</form>
</body>
<script type="text/javascript">
	KE.show({
		id : 'title',
		newlineTag : 'br'
	});
	KE.show({
		id : 'context',
		newlineTag : 'br'
	});
	KE.show({
		id : 'attention',
		newlineTag : 'br'
	});
</script>
</html>